﻿<div class="tabs-users">
    <ul>
        <li><a data-ng-class="{active : activeViewPath==='/validationRules' || isActive('/validationRules') }" 
               href="#/validationRules">Validation Rules</a></li>
    </ul>
</div>
<br />
<form name="importPInputFileForm" novalidate>
    <div class="title-bold" style="font-size: 16px;">Upload White list (.csv file - Action,CapitalIqId,ResearchProduct)</div>
    <div>
        <input type="file" ng-file-select="validationRules.onSelectFile($files);" accept=".csv" /><br />
        <input class="btn-green" type="button" value="Upload" ng-click="validationRules.uploadInputFile();" />
        <span class="progress" ng-show="validationRules.uploadProgress >= 0">Progress: {{validationRules.uploadProgress}}%</span>
    </div>
    <br/>
    <div style="font-weight:bold;color:darkred;" ng-show="validationRules.warningMessages != null">File partially processed. Following lines were ignored.</div>
    <div ng-repeat="message in validationRules.warningMessages track by $index">
        {{message}}
    </div>

    <br />
    <br />
    <div class="title-bold" style="font-size: 16px;">Download White list (.csv file)</div>
    <input class="btn-green" type="button" value="Download" ng-click="validationRules.downloadWhiteListFile();" />
    <br/>    

</form>